<?php defined('BASEPATH') or exit('No direct script access allowed.'); ?><?php defined('BASEPATH') or exit('No permission resources.'); ?>
<form class="form-horizontal" role="form" id="validateform" name="validateform" action="<?php echo base_url('adminpanel/bill/edit')?>" >
	<div class='panel panel-default '>
		<div class='panel-heading'>
			<i class='fa fa-table'></i> 订单管理 修改信息
			<div class='panel-tools'>
				<div class='btn-group'>
					<a class="btn " href="<?php echo base_url('adminpanel/bill')?>"><span class="glyphicon glyphicon-arrow-left"></span> 返回 </a>
				</div>
			</div>
		</div>
		<div class='panel-body '>
								<fieldset>
						<legend>基本信息</legend>
													
	<div class="form-group">
				<label for="title" class="col-sm-2 control-label form-control-static">订单标题</label>
				<div class="col-sm-9 ">
					<input type="text" name="title"  id="title"  value='<?php echo isset($data_info['title'])?$data_info['title']:'' ?>'  class="form-control validate[required]"  placeholder="请输入订单标题" >
				</div>
			</div>
													
	<div class="form-group">
				<label for="customer_id" class="col-sm-2 control-label form-control-static">客户信息</label>
				<div class="col-md-5 ">
					<input class="form-control" value="<?php echo isset($data_info['customer_id_text'])?$data_info['customer_id_text']:''; ?>" readonly="readonly" placeholder="请点击选择" type="text" id="customer_id_text"  /><input type="hidden" value="<?php echo isset($data_info['customer_id'])?$data_info['customer_id']:'';?>" id="customer_id" name="customer_id" />
				</div>
			</div>
													
	<div class="form-group">
				<label for="status" class="col-sm-2 control-label form-control-static">订单状态</label>
				<div class="col-sm-9 ">
					<input type="number" name="status"  id="status"  value='<?php echo isset($data_info['status'])?$data_info['status']:'' ?>'   class="form-control  validate[required,custom[integer]]" placeholder="请输入订单状态" >
				</div>
			</div>
													
	<div class="form-group">
				<label for="add_time" class="col-sm-2 control-label form-control-static">下单时间</label>
				<div class="col-sm-9 ">
					<input type="text" name="add_time"  id="add_time"   value='<?php echo isset($data_info['add_time'])?$data_info['add_time']:'' ?>'  class="form-control datetimepicker  validate[required,custom[datetime]]"  placeholder="请输入下单时间" >
				</div>
			</div>
													
	<div class="form-group">
				<label for="inspect_time" class="col-sm-2 control-label form-control-static">检验时间</label>
				<div class="col-sm-9 ">
					<input type="text" name="inspect_time"  id="inspect_time"   value='<?php echo isset($data_info['inspect_time'])?$data_info['inspect_time']:'' ?>'  class="form-control datetimepicker  validate[required,custom[datetime]]"  placeholder="请输入检验时间" >
				</div>
			</div>
											</fieldset>
									<fieldset>
						<legend>附加信息</legend>
													
	<div class="form-group">
				<label for="notes" class="col-sm-2 control-label form-control-static">备注信息</label>
				<div class="col-sm-9 ">
					<textarea name="notes"  id="notes"  cols="45" rows="5" class="form-control " placeholder="请输入备注信息" ><?php echo isset($data_info['notes'])?$data_info['notes']:'' ?></textarea>
				</div>
			</div>
											</fieldset>
							<div class='form-actions'>
				<button class='btn btn-primary ' type='submit' id="dosubmit">保存</button>
			</div>
</form>
			<script language="javascript" type="text/javascript">
			var is_edit =<?php echo ($is_edit)?"true":"false" ?>;
			var id =<?php echo $id;?>;

			require(['<?php echo SITE_URL?>scripts/common.js'], function (common) {
		        require(['<?php echo SITE_URL?>scripts/adminpanel/bill/edit.js']);
		    });
		</script>
	
	